package com.xc.dao;

import com.xc.pojo.Stock;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StockMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Stock record);

    int insertSelective(Stock record);

    Stock selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Stock record);

    int updateByPrimaryKey(Stock record);



    List findStockListByKeyWords(@Param("keyWords") String keyWords,
                                 @Param("show") Integer show);

    Stock findStockByCode(String code);
    Stock findStockByName(String name);



    List listByAdmin(@Param("showState") Integer showState
            ,@Param("lockState") Integer lockState
            ,@Param("code") String code
            ,@Param("name") String name);


    int CountStockNum();
    int CountShowNum(Integer showState);
    int CountUnLockNum(Integer lockState);



}